<script lang="ts" setup>
import { queryConfigByModule } from '@/apis/order'

// #ifdef H5
const getConfigByModule = async () => {
  const { code, data } = await queryConfigByModule('OTHERS_SETTING, PUBLIC_SETTING')
  if (code === 200 && data) {
    uni.$on('updateTitle', () => {
      uni.setNavigationBarTitle({
        title: data.STORE_MOBILE_NAME, // 设置为你想要显示的标题文本
      })
    })
    document.getElementById('website_icon')?.setAttribute('href', data.WEB_SIT_ICON)
  }
}
getConfigByModule()
// #endif
</script>

<style lang="scss">
@import './uni_modules/vk-uview-ui/index.scss';
page {
  background-color: #f5f5f5;
}
</style>
